import request from '@/utils/request'

// 修改交易所信息
export function updateExchange(data) {
  return request({
    url: '/strategy/updateExchange',
    method: 'post',
    data: data
  })
}

// 删除策略对应的交易所
export function deleteStrategyExchange(params) {
  return request({
    url: '/strategy/deleteExchange',
    method: 'get',
    params: params
  })
}

// 新增策略对应的交易所
export function getAllExchanges(params) {
  return request({
    url: '/strategy/findAllExchange',
    method: 'get',
    params: params
  })
}

// 修改交易所信息
export function addExchange(data) {
  return request({
    url: '/strategy/addExchange',
    method: 'post',
    data: data
  })
}

